
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '组织管理',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'zzbh_45eb7c85_rc7a',
        name: "{{zzbh_45eb7c85_rc7a}}",
        binding: 'zzbh',
        updateOn: 'blur',
        defaultI18nValue: '组织编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zzbh: FormControl;

    @NgFormControl({
        id: 'zzmc_969e561e_vwjg',
        name: "{{zzmc_969e561e_vwjg}}",
        binding: 'zzmc',
        updateOn: 'blur',
        defaultI18nValue: '组织名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zzmc: FormControl;

    @NgFormControl({
        id: 'zzlb_5a6e3bf2_yp8v',
        name: "{{zzlb_5a6e3bf2_yp8v}}",
        binding: 'zzlb',
        updateOn: 'blur',
        defaultI18nValue: '组织类别',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    zzlb: FormControl;

    @NgFormControl({
        id: 'projectNote_29aa4a4e_nymp',
        name: "{{projectNote_29aa4a4e_nymp}}",
        binding: 'projectNote',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    projectNote: FormControl;

    @NgFormControl({
        id: 'sszz_13e92b6b_hk1r',
        name: "{{sszz_13e92b6b_hk1r}}",
        binding: 'sszz',
        updateOn: 'blur',
        defaultI18nValue: '组织类型',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    sszz: FormControl;

}